package by.dkusch.aircompany.webapp.page.staff;

import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;

import by.dkusch.aircompany.webapp.page.base.BaseListLayout;
import by.dkusch.aircompany.webapp.page.staff.panel.CrewListPanel;

public class CrewPage extends BaseListLayout {

	private static final long serialVersionUID = 1L;

	@Override
	protected void onInitialize() {
		super.onInitialize();
		add(new CrewListPanel("panel-list", getItemsPerPage(), false));

	};

	@Override
	protected IModel<String> getPageTitle() {
		return new ResourceModel("p.crew.title");
	}

	public CrewPage() {
		this(ITEMS_PER_PAGE_DEFAULT);
	}

	public CrewPage(int itemsPerPage) {
		super(itemsPerPage);
	}
}
